package interfaces.menu.options;

import org.fenggui.binding.render.ImageFont;
import org.fenggui.util.Dimension;
import org.fenggui.util.Point;

import interfaces.superWidgets.tabs.AbsTabContent;
import interfaces.superWidgets.tabs.TabSwitchContent;

public class OptionSwitchContent extends TabSwitchContent {
	
	private OptionTabContent optionTabContent;
	
	public OptionSwitchContent(int width, int height, ImageFont tabFont, int tabWidth) {
		super(width, height, tabFont, tabWidth);
	}
	
	@Override
	protected AbsTabContent createTabContent(ImageFont tabFont, int tabWidth) {
		optionTabContent = new OptionTabContent(tabWidth, height, getTabButtonHeight(tabFont));
		switchContentSize = new Dimension(width - tabWidth, height);
		switchContentPos = new Point(tabWidth, 0);
		return optionTabContent;
	}
	
	public OptionTabContent getOptionTabContent() { return optionTabContent; }
}